package com.dc.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 巡检中间表
 *
 * @author feishaobin
 * @email
 * @date 2021-12-27 14:23:07
 */
@Data
@ApiModel
@TableName("dc_inspection_work_order_relation")
public class InspectionWorkOrderRelation implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "")
    private Long id;
    /**
     * 关联dc_inspection_work_order表
     */
    @ApiModelProperty(value = "关联dc_work_order表")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long wordOrderId;
    /**
     * 0:正常 1:异常
     */
    @ApiModelProperty(value = "0:正常 1:异常")
    private Integer inspectionResult;
    /**
     * 巡检点位置
     */
    @ApiModelProperty(value = "巡检点位置")
    private String address;

    /**
     * 区域id
     */
    @ApiModelProperty(value = "区域id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long regionId;

    /**
     * 巡检区域位置
     */
    @ApiModelProperty(value = "巡检区域位置")
    private String regionName;
    /**
     * 巡检点id
     */
    @ApiModelProperty(value = "巡检点id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long positionId;
    /**
     * 巡检点名称
     */
    @ApiModelProperty(value = "巡检点名称")
    private String positionName;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
